@tailwind base;
@tailwind components;
@tailwind utilities;

/* 添加全局样式 */
html,
body {
  padding: 0;
  margin: 0;
  min-height: 100vh;
  width: 100%;
}

/* 防止闪烁 */
body {
  opacity: 1;
  transition: opacity 0.5s ease;
}

body.loading {
  opacity: 0;
}

/* 确保布局容器正确显示 */
#__next {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

/* 确保 Ant Design 组件样式正确加载 */
.ant-layout,
.ant-layout-content {
  min-height: 100vh;
}

/* 修复一些常见的样式问题 */
.ant-card,
.ant-input,
.ant-btn,
.ant-select-selector {
  transition: all 0.3s ease;
}

.ant-card:hover {
  transform: translateY(-2px);
}

/* 延迟加载非关键样式 */
@media print {
  .no-print {
    display: none;
  }
}

.hero-section {
  background: linear-gradient(135deg, #f5f7fa 0%, #e8f4f8 100%);
  padding: 4rem 2rem;
  border-radius: 15px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.05);
}

.medical-features {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 2rem;
  padding: 3rem 0;
}

.feature-card {
  background: white;
  padding: 1.5rem;
  border-radius: 12px;
  border: 1px solid #e1f0f7;
  transition: transform 0.3s ease;
}

.feature-card:hover {
  transform: translateY(-5px);
}

.medical-icon {
  color: #4a90e2;
  font-size: 2.5rem;
  margin-bottom: 1rem;
}

.warm-text {
  color: #2c3e50;
  line-height: 1.6;
}

.accent-color {
  color: #4a90e2;
}
